#!/bin/sh
#
# build-all
#
# Copyright (C) 2016-2020 Wu Zhangjin <lzufalcon@163.com>
#

TOP_DIR=$(cd $(dirname $0)/../../ && pwd)
. $TOP_DIR/tools/docker/config $* >/dev/null

# markdown-lab must be built before qing-lab

for lab in $LABS
do
    echo "\n\n========== Building tinylab/$lab ==========\n\n"

    $DOCKER_BUILD_CMD $lab

    [ $? -ne 0 ] && exit 1
done
